package com.example.volleytest.activity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;
import com.example.volleytest.adapter.FriendsAdapter;

public class FriendsListActivity extends Activity {
    private FriendsAdapter friendsAdapter;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        ListView listView = new ListView(this);
        friendsAdapter = new FriendsAdapter(getLayoutInflater());
        listView.setAdapter(friendsAdapter);
        setContentView(listView);
    }

    @Override
    public void onStop() {
        super.onStop();

        friendsAdapter.cancelRequests();
    }
}
